/*
 * @Author: thinker_cy
 * @Date: 2025-11-04 11:23:22
 * @FilePath: \weimai-admin\src\api\hireinfo\index.js
 * @Description: 
 */
import request from '@/config/axios'

// 招聘信息 API
export const HireInfoApi = {
  // 查询招聘信息分页
  getHireInfoPage: async (params) => {
    return await request.get(`/hire-info/page`, { params })
  },

  // 查询招聘信息详情
  getHireInfo: async (id) => {
    return await request.get(`/hire-info/get?id=` + id)
  },

  // 新增招聘信息
  createHireInfo: async (data) => {
    return await request.post(`/hire-info/create`, data)
  },

  // 修改招聘信息
  updateHireInfo: async (data) => {
    return await request.post(`/hire-info/update`, data)
  },

  // 删除招聘信息
  deleteHireInfo: async (id) => {
    return await request.delete(`/hire-info/delete?id=` + id)
  },

  // 导出招聘信息 Excel
  exportHireInfo: async (params) => {
    return await request.get(`/hire-info/export-excel`, { params })
  },
}